home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5545 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4hpcku$3aq@ousrvr3.oulu.fi> <13213732@sourcery.han.de> <4ibd9t$1gr@ousrvr3.oulu.fi>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Sat, 16 Mar 1996 13:52:21 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: Q: Change SuperBitMap planes?
  8. Message-ID: <13213751@sourcery.han.de>
  9.  
  10. In Article <4ibd9t$1gr@ousrvr3.oulu.fi>, Timo Karjalainen <tikarjal@haapa.oulu.fi> wrote:
  11. > : > can the BitMap be changed while Intuition is displaying the window?
  12. > :    No, it's not legal.
  13. >
  14. > :    The way layers work, you can't do it without wreaking major havoc
  15. > : on the rest of the screen layers and other objects which cache bitmap
  16. > : pointers.
  17. >
  18. > How does Intuition manage sizable normal windows? When enlargened they'll
  19. > need more display memory. I think Intuition would need to switch to a
  20. > bigger BitMap?
  21.  
  22.    No, this is not how it works. Intuition does not allocate one single BitMap
  23. for each Window. What you see as a window is a Layer, a rectangular area made up
  24. from clipping regions. These regions in turn will hold BitMaps drawing operations
  25. will end up rendering into.
  26.  
  27. > If Intuition does it in a magic way, why not make it publicly usable with
  28. > an LVO entry like ChangeWindowBitMap( win, newbm ) and something similar
  29. > in layers.library?
  30.  
  31.    Intuition is not involved in this operation, it's up to layers.library to
  32. do the work. Yanking the clipping regions from the Window Layer and replacing
  33. them in the next turn is not something done lightly.
  34.  
  35. > Also I find it rather odd that RKMs and AutoDocs don't say ANYTHING about
  36. > this. I'd presume they'd either deny it or note that it can be done (and
  37. > tell the proper procedure).
  38.  
  39.    layers.library itself is sorely underdocumented in the first place.
  40. Unless you have a very good reason to do so, you should not be messing with
  41. Layers anyway. The relation between Layers and Intuition is an intimate one,
  42. the slightest error is bound to cause great trouble. It's just too easy to
  43. deadlock Intuition through Layers.
  44.  
  45. --
  46. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  47.  Net: olsen@sourcery.han.de
  48.